package com.renne.email.domain;

import com.renne.common.annotation.Excel;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 邮件导入实体类
 *
 * @author LiuYu
 * @date 2024-07-26
 */
@Data
@ToString
public class MailImportVo {

    /**
     * 收件人
     */
    @NotBlank(message = "收件人不能为空")
    @Email(message = "收件人邮箱格式不正确")
    @Size(min = 1, max = 50, message = "收件人长度不能超过50个字符")
    @Excel(name = "收件人地址")
    private String toEmail;
    /**
     * 标题
     */
    @Excel(name = "邮件标题")
    @Size(min = 1, max = 200, message = "邮件标题长度不能超过200个字符")
    @NotBlank(message = "邮件标题不能为空")
    private String title;

    /**
     * 邮件内容
     */
    @Excel(name = "邮件正文")
    @NotBlank(message = "邮件正文不能为空")
    private String content;
    /**
     * 附件
     */
    @Excel(name = "附件")
    @Size(min = 0, max = 2000, message = "附件长度不能超过2000个字符")
    private String filePath;
    /**
     * 抄送人
     */
    @Excel(name = "抄送人地址")
    @Size(min = 0, max = 2000, message = "抄送人长度不能超过2000个字符")
    private String copyEmail;
    /**
     * 抄送人
     */
    @Excel(name = "备注")
    @Size(min = 0, max = 500, message = "备注长度不能超过2000个字符")
    private String remark;
}
